﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>供应商管理</title>
    @Html.Partial("wap/team/commonMeta")
    <link rel="stylesheet" href="~/css/wap/team/product.css?v=@MvcWechat.Common.Version.Get" />
    <link href="~/Css/wap/team/stock.css?v=@MvcWechat.Common.Version.Get" rel="stylesheet" />
    <link href="~/css/wap/libs/multiple-select.css" rel="stylesheet">
    <link href="~/Css/wap/team/teamorder.css?v=@MvcWechat.Common.Version.Get" rel="stylesheet"/>
</head>
<style type="text/css">
    .mod_productType{ display: none;}
</style>
<body>
    <div class="views">
    <div class="view view-main">
        <div class="navbar">
            <div class="navbar-inner">
                <header id="common_header">
                    <div class="menu_icon_box" id="show_menu_btn">
                        <em class="menu-btn"></em>
                    </div>
                    <div class="menu_icon_box" id="hide_menu_btn">
                        <em class="colse-nav-btn"></em>
                    </div>
                    <h2>供应商管理</h2>
                </header>
                @Html.Partial("wap/team/teammenu")
                <div class="subnavbar" style="display: block;padding: 0;height:auto;background-color: #fff;">
                    <!--导航栏start-->
                    <div class="wrapper wrapper01" id="retr">
                        <div class="scroller">
                            <ul class="clearfix" id="categories">
                                <li><a class="external" style="display:@(MvcWechat.Common.GetOpenMenu.IsDisplay("diamond")==true?"inline-block":"none")" data-type="1" data-title="裸钻" href="/team/supplier?type=1">裸钻</a></li>
                                <li><a class="external" style="display:none"  data-type="7" data-title="空托" href="/team/supplier?type=7">空托</a></li>
                                <li><a class="external" style="display:none" data-type="3" data-title="成品" href="/team/supplier?type=3">成品</a></li>
                            </ul>
                        </div>
                    </div>
                    <!--导航栏end-->
                    <div class="order_list list_status clearfix" id="_sysStatus">
                        <ul style="display:none">
                            <li data-value="" class="add_blue"><a href="#" onclick="supplierClickUrl(this)" class="external">角色权限管理</a></li>
                        </ul>
                        <span id="show_term_btn" class="add_blue">筛选</span>
                    </div>
                    <div class="check_btn_box li_btn_box clearfix">
                        <ul>
                            <li><button class="search_btn_b" id="transfer" disabled="disabled">批量删除</button></li> <!--onclick='ModifySalesUserID_Js();' -->
                            <li><button class="search_btn_b" id="role_btn" disabled="disabled">修改角色</button></li>
                        </ul>
                    </div>
                    <!--固定表头-->
                    <table class="product_table" id="product_table_fixed">
                        <thead>
                        <tr>
                            <th style='width:8%' class="check_head_box"><div class='check_list_box'><span class='checkbox' id="checkbox_check_all" name='checkbox' lang=''></span></div></th>
                            <th style='width:10%'>账号</th>
                            <th class='nickname' style='width:12%'>简称</th>
                            <th style='width:12%'>全称</th>
                            <th style='width:12%'>国家</th>
                            <th style='width:10%'>状态</th>
                        </tr>
                        </thead>
                        <tbody id="stock_body_hide">

                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="pages navbar-through toolbar-through">
            <div data-page="index" class="page">
                <!--内容区start-->
                <div class="page-content" id="app_no_header">
                    <!-- 库存列表start -->
                    <div id="inventory" style="background-color: #fff;">
                        <table class="product_table" id="product_table">
                            <thead>
                            <tr>
                                <th style='width:8%' class="check_head_box"><div class='check_list_box'><span class='checkbox' id="checkbox_check_all" name='checkbox' lang=''></span></div></th>
                                <th style='width:10%'>账号</th>
                                <th class='nickname' style='width:12%'>简称</th>
                                <th style='width:12%'>全称</th>
                                <th style='width:12%'>国家</th>
                                <th style='width:10%'>状态<i class="sort sort_normal" data-sort="SysStatus"></i></th>
                            </tr>
                            </thead>
                            <tbody id="stock_body"  class="tab-content">

                            </tbody>
                        </table>
                    </div>
                    <p class="totalcount">显示前500条<a class="diasType"></a></p>
                </div>
                <!--内容区end-->
            </div>
        </div>
        <!--编辑供应商-->
        <!--筛选start-->
        <div class="popup customer_filter_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>搜索</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;">
                    <datalist id="_customerNickName" class="form-control list_search" style="display:none;"></datalist> <!-- 下拉优化 -->
                    <div class="form-group">
                        <label>简称：</label>
                        <input type="text" id="_supplierCode" list="_customerNickName" class="form-control" placeholder="简称"/>
                    </div>
                    <div class="form-group">
                        <label>全称：</label>
                        <input class="form-control" type="text" placeholder="全称" id="_supplierName"/>
                    </div>
                    <div class="form-group">
                        <label>取货地址：</label>
                        <input class="form-control" type="text" placeholder="取货地址"  id="_deliveryAddress" />
                    </div>
                    <div class="form-group">
                        <label>国家：</label>
                        <select class="form-control list_search" id="_country">
                            <option value="">国家</option>
                            <option value="IND">IND</option>
                            <option value="HK">HK</option>
                            <option value="BEL">BEL</option>
                            <option value="ISR">ISR</option>
                            <option value="BEL">BEL</option>
                            <option value="CHN">CHN</option>
                            <option value="BEL">BEL</option>
                            <option value="USA">USA</option>
                            <option value="CA">CA</option>
                            <option value="UK">UK</option>
                            <option value="UAE">UAE</option>
                            <option value="TL">TL</option>
                            <option value="IT">IT</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label>现货：</label>
                        <select class="form-control list_search" id="_spotdata">
                            <option value="">现货</option>
                            <option value="1">是</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label>状态：</label>
                        <select class="form-control list_search" id="_sysStatus1">
                            <option value="">状态</option>
                            <option value="1">正常</option>
                            <option value="-1">已删</option>
                        </select>
                    </div>
                    <div class="form-btn">
                        <input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" />
                        <input type="button" class="btn btn-danger supbtn" id="confirm_btn" value="确定"/>
                    </div>
                </form>
            </div>
        </div>
        <!--筛选end-->
        <!--编辑供应商start-->
        <div class="popup supplier_form_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5 id="supplier_form_title">编辑供应商</h5>
                <form class="form-inline" name="addForm" method="post" id="form_data" style="padding: 5px 5px 5px 30px;">
                    <input type="text" id="id_input" style="display: none;"/>
                    <div class="form-group">
                        <label for="add_supplierCode"><b class="no_null">*</b>简称：</label>
                        <input type="text" class="form-control" id="add_supplierCode" placeholder="简称" name="SupplierCode">                    <!--  onblur="UserNameIsExist();" -->
                    </div>
                    <div class="form-group">
                        <label for="add_supplierName"><b class="no_null">*</b>全称：</label>
                        <input type="text" class="form-control" id="add_supplierName" placeholder="全称" name="SupplierName" />
                    </div>
                    <div class="form-group">
                        <label for="add_deliveryAddress"><b class="no_null">*</b>取货地址：</label>
                        <input type="text" class="form-control" id="add_deliveryAddress" placeholder="取货地址" name="DeliveryAddress">
                    </div>
                    <div class="form-group">
                        <label for="add_sort"><b class="no_null">*</b>取货次序：</label>
                        <input type="number" class="form-control" id="add_sort" placeholder="取货次序" name="Sort">
                    </div>
                    <div class="form-group mod_productType">
                        <label for="add_rebate">白钻加点：</label>
                        <input type="text" class="form-control" id="add_rebate" placeholder="白钻加点" name="Rebate">
                    </div>
                    <div class="form-group mod_productType">
                        <label for="add_fancyRebate">彩钻加点：</label>
                        <input type="text" class="form-control" id="add_fancyRebate" placeholder="彩钻加点" name="FancyRebate">
                    </div>
                    <div class="form-group mod_productType">
                        <label for="ParcelRebate">统包折扣：</label>
                        <input type="text" class="form-control" id="add_parcelRebate" placeholder="统包折扣" name="ParcelRebate">
                    </div>
                    <div class="form-group mod_productType">
                        <label for="RingRebate">成品折扣：</label>
                        <input type="text" class="form-control" id="add_ringRebate" placeholder="成品折扣" name="RingRebate">
                    </div>
                    <div class="form-group mod_productType">
                        <label for="GemRebate">彩宝折扣：</label>
                        <input type="text" class="form-control" id="add_gemRebate" placeholder="彩宝折扣" name="GemRebate">
                    </div>
                    <div class="form-group mod_productType">
                        <label for="EmeraldRebate">翡翠折扣：</label>
                        <input type="text" class="form-control" id="add_emeraldRebate" placeholder="翡翠折扣" name="EmeraldRebate">
                    </div>
                    <div class="form-group mod_productType">
                        <label for="PrimeGoldRebate">素金折扣：</label>
                        <input type="text" class="form-control" id="add_primeGoldRebate" placeholder="素金折扣" name="PrimeGoldRebate">
                    </div>
                    <div class="form-group">
                        <label for="add_rapnetID" class="purchase-text">RapID：</label>
                        <input type="text" class="form-control" id="add_rapnetID" placeholder="RapID" name="RapnetID">
                    </div>
                    <div class="form-group">
                        <label for="Skype" class="purchase-text">Skype：</label>
                        <input type="text" class="form-control" id="Skype" placeholder="Skype" name="Skype">
                    </div>

                    <div class="form-group">
                        <label for="add_url" class="purchase-text">网址：</label>
                        <input type="text" class="form-control" id="add_url" placeholder="网址" name="Url">
                    </div>
                    <!---->
                    <div class="form-group">
                        <label for="UserName" class="purchase-text">帐号：</label>
                        <input type="text" class="form-control" id="UserName" placeholder="帐号" name="Username">
                    </div>
                    <div class="form-group">
                        <label for="Password" class="purchase-text">密码：</label>
                        <input type="password" class="form-control" id="Password" placeholder="密码" name="Password">
                    </div>
                    <div class="form-group">
                        <label for="add_email" class="purchase-text">邮箱：</label>
                        <input type="text" class="form-control" id="add_email" placeholder="邮箱" name="Email">
                    </div>
                    <!---->
                    <div class="form-group">
                        <label for="Country">国家/地区：</label>
                        <select class="form-control" name="Country" id="add_country">
                            <option value="IND" selected="selected">IND</option>
                            <option value="HK">HK</option>
                            <option value="BEL">BEL</option>
                            <option value="ISR">ISR</option>
                            <option value="BEL">BEL</option>
                            <option value="CHN">CHN</option>
                            <option value="BEL">BEL</option>
                            <option value="USA">USA</option>
                            <option value="CA">CA</option>
                            <option value="UK">UK</option>
                            <option value="UAE">UAE</option>
                            <option value="TL">TL</option>
                            <option value="IT">IT</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="SysStatus" class="purchase-text">状态：</label>
                        <select class="form-control" name="SysStatus" id="add_sysStatus">
                            <option value="1" selected="selected">正常</option>
                        </select>
                    </div>
                    <div class="form-group input_button_div">
                        <label>发货时间：</label>
                        <select class="form-control" name="ShipTime" id="add_shipTime"  multiple="multiple">
                            <option value="1">周一</option>
                            <option value="2">周二</option>
                            <option value="3">周三</option>
                            <option value="4">周四</option>
                            <option value="5">周五</option>
                            <option value="6">周六</option>
                            <option value="0">周日</option>
                        </select>
                    </div>
                    <div class="form-group input_button_div">
                        <label>供应商角色：</label>
                        <select class="form-control" name="SupplierRoleID" id="form_RoleName">
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Introduction" class="purchase-textarea cus_textarea">备注：</label>
                        <textarea class="form-text" id="add_comments" placeholder="备注" name="Introduction" cols="60" rows="2"></textarea>
                    </div>
                    <div style="clear: both;"></div>
                    <div class="form-btn">
                        <input id="reset_btn" class="btn btn-danger supbtn" type="reset" value="重置"/>
                        <input type="submit" class="btn btn-danger supbtn" value="确定"/>
                    </div>
                    <!--</div>-->
                </form>
            </div>
        </div>
        <!--编辑供应商end-->
        <!-- 角色start --->
        <div class="popup" id="batch_RoleName_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>供应商角色</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;" id="batch_RoleName_form" method="post">
                    <div class="form-inline-edit" style="width:100%;">
                        <div class="form-group input_button_div">
                            <label for="RoleNames" style="width:auto">供应商角色：</label>
                            <select class="form-control" name="SupplierRoleID" id="batch_RoleName">
                            </select>
                        </div>
                        <div class="form-btn">
                            <input type="submit" class="btn btn-danger supbtn"  value="确定" />
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <!-- 角色end --->
    </div>
</div>
</body>
</html>
@Html.Partial("wap/team/commonTeamJs")
<script src="~/Js/jquery.validate.min.js"></script>
<script src="~/Js/jquery.form.js"></script>
<script src="~/Js/wap/team/multiple-select.js"></script>
<script src="~/js/wap/team/supplier.js?v=@MvcWechat.Common.Version.Get" type="text/javascript"></script>